package com.ruoyi.projectmanage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.projectmanage.mapper.XzkProjectManageMapper;
import com.ruoyi.projectmanage.domain.XzkProjectManage;
import com.ruoyi.projectmanage.service.IXzkProjectManageService;
import com.ruoyi.common.core.text.Convert;

/**
 * 项目管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-02
 */
@Service
public class XzkProjectManageServiceImpl implements IXzkProjectManageService 
{
    @Autowired
    private XzkProjectManageMapper xzkProjectManageMapper;

    /**
     * 查询项目管理
     * 
     * @param projectid 项目管理ID
     * @return 项目管理
     */
    @Override
    public XzkProjectManage selectXzkProjectManageById(Long projectid)
    {
        return xzkProjectManageMapper.selectXzkProjectManageById(projectid);
    }

    /**
     * 查询项目管理列表
     * 
     * @param xzkProjectManage 项目管理
     * @return 项目管理
     */
    @Override
    public List<XzkProjectManage> selectXzkProjectManageList(XzkProjectManage xzkProjectManage)
    {
        return xzkProjectManageMapper.selectXzkProjectManageList(xzkProjectManage);
    }

    /**
     * 新增项目管理
     * 
     * @param xzkProjectManage 项目管理
     * @return 结果
     */
    @Override
    public int insertXzkProjectManage(XzkProjectManage xzkProjectManage)
    {
        return xzkProjectManageMapper.insertXzkProjectManage(xzkProjectManage);
    }

    /**
     * 修改项目管理
     * 
     * @param xzkProjectManage 项目管理
     * @return 结果
     */
    @Override
    public int updateXzkProjectManage(XzkProjectManage xzkProjectManage)
    {
        return xzkProjectManageMapper.updateXzkProjectManage(xzkProjectManage);
    }

    /**
     * 删除项目管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteXzkProjectManageByIds(String ids)
    {
        return xzkProjectManageMapper.deleteXzkProjectManageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目管理信息
     * 
     * @param projectid 项目管理ID
     * @return 结果
     */
    @Override
    public int deleteXzkProjectManageById(Long projectid)
    {
        return xzkProjectManageMapper.deleteXzkProjectManageById(projectid);
    }
}
